﻿namespace JobButenko.Models.BusinessLogicLayer
{
    using System.Collections.Generic;
    using System.Linq;

    public class ProfessionalFieldRepository
    {
        private readonly JobDataContext dataContext;

        public ProfessionalFieldRepository(JobDataContext dataContext)
        {
            this.dataContext = dataContext;
        }

        public IEnumerable<ProfessionalField> GetProfField()
        {
            return this.dataContext.ProfessionalFields.OrderBy(prof => prof.ProfFieldId);
        }
    }
}